package com.doudou.pay.helper.commons;

public class PayConstans {
	
	/**支付类型-支付宝*/
	public final static String PAY_TYPE_ALIPAY = "alipay";
	/**支付类型-微信*/
	public final static String PAY_TYPE_WEIXIN = "weixin";
	/**支付类型-qq*/
	public final static String PAY_TYPE_QQ = "qq";
	
	/**tcp消息类型-心跳*/
	public final static int TCP_MSG_TYPE_HEARTBEAT = 11;
	/**tcp消息类型-鉴权*/
	public final static int TCP_MSG_TYPE_AUTHENTICATION = 12;
	
	/**tcp消息类型-发起支付*/
	public final static int TCP_MSG_TYPE_REQUEST_PAY = 22;
	/**tcp消息类型-响应支付*/
	public final static int TCP_MSG_TYPE_RESPONSE_PAY = 23;
	
	public final static String PAY_STATUS_REQUEST = "1";
	public final static String PAY_STATUS_RESPONSE = "2";
	public final static String PAY_STATUS_SUCCESS =  "3";
	public final static String PAY_STATUS_QRCODE_FAIL =  "4";
	public final static String PAY_STATUS_NOTIFY_FAIL =  "5";
	public final static String PAY_STATUS_NOTIFY_MERCHANT_FAIL =  "6";
	
	
	//订单有效时间
	public final static int PAY_VALID_TIME = 5;
	
	/**
	 * 用户的有效性判断
	 */
	public final static int USER_EFFECTIVE_TYPE_TIME = 0;
	public final static int USER_EFFECTIVE_TYPE_BALANCE = 1;
}
